using System;
using System.Collections.Generic;
using System.Text;

namespace Camalon.Drawing.Samples.CSharp
{
    public partial class Text1:Camalon.Drawing.ShapeContainer
    {
        private Shapes.RectangleShape textRect;
        private ShapePen rectPen;
        private SolidFill textFill;
        private ShapePen textPen;
        private SolidFill shadeFill;
        private Shade textShade;
    
        private void InitializeComponent()
        {
            this.textRect = new Camalon.Drawing.Shapes.RectangleShape();
            this.rectPen = new Camalon.Drawing.ShapePen();
            this.textShade = new Camalon.Drawing.Shade();
            this.shadeFill = new Camalon.Drawing.SolidFill();
            this.textFill = new Camalon.Drawing.SolidFill();
            this.textPen = new Camalon.Drawing.ShapePen();
            ((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
            // 
            // textRect
            // 
            this.textRect.BottomLeft = new Camalon.Drawing.Corner(0.2499998F, 0.0625001F);
            this.textRect.BottomRight = new Camalon.Drawing.Corner(0.2500007F, 0.0625001F);
            this.textRect.Font = new System.Drawing.Font("Arial Rounded MT Bold", 72F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
            this.textRect.Pen = this.rectPen;
            this.textRect.Position = new System.Drawing.Point(120, 90);
            this.textRect.Shade = this.textShade;
            this.textRect.Size = new System.Drawing.Size(130, 440);
            this.textRect.Text = "Your Text";
            this.textRect.TextFill = this.textFill;
            this.textRect.TextFormat.TextDirection = Camalon.Drawing.TextDirection.VerticalBottomToTop;
            this.textRect.TextPen = this.textPen;
            this.textRect.TextShade = this.textShade;
            this.textRect.TopLeft = new Camalon.Drawing.Corner(0.2499998F, 0.06250003F);
            this.textRect.TopRight = new Camalon.Drawing.Corner(0.2500003F, 0.06250003F);
            // 
            // rectPen
            // 
            this.rectPen.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.Coral);
            this.rectPen.Width = 3F;
            // 
            // textShade
            // 
            this.textShade.Fill = this.shadeFill;
            this.textShade.Offset = new System.Drawing.Point(5, 5);
            // 
            // shadeFill
            // 
            this.shadeFill.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.FromArgb(((int)(((byte)(230)))), ((int)(((byte)(189)))), ((int)(((byte)(51))))));
            // 
            // textFill
            // 
            this.textFill.Color = new Camalon.Drawing.TransparentColor(System.Drawing.Color.IndianRed);
            // 
            // Text1
            // 
            this.Position = new System.Drawing.Point(50, 50);
            this.Shapes.AddRange(new Camalon.Drawing.Shape[] {
            this.textRect});
            this.Size = new System.Drawing.Size(410, 610);
            ((System.ComponentModel.ISupportInitialize)(this)).EndInit();

        }


        public Text1()
        {
            InitializeComponent();
        }
    }
}
